﻿<controls:ChildWindow
   x:Class="EyeOpen.Crypt.Silverlight.ErrorsView"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
   Width="300"
   Height="200"
   DataContext="{Binding CryptViewModel, Source={StaticResource viewModelLocator}}"
  >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition  Height="23"/>
        </Grid.RowDefinitions>
        <Button
            Content="Close"
            HorizontalAlignment="Center"
            Width="40"
            Grid.Row="1"
            Click="AcceptDialogResult"
        />
        <TextBlock
            x:Name="errorText"
            Grid.Row="0"
            Foreground="Red"
            Text="{Binding ErrorMessage}"
        />
    </Grid>
</controls:ChildWindow>